package com.gc.server.vo.up;


import com.gc.server.entity.SchoolEntity;
import com.gc.server.entity.ShopEntity;
import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;


import com.gc.server.entity.SchoolShopEntity;
import com.gc.server.vo.SchoolShopVo;


/**
 * 学校药店关系集合实体
 * 表名 school_shop
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Data
public class SchoolShopUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    //
    @ExcelProperty("")
    private Long id;

    //学校ID
    @ExcelProperty("学校ID")
    private Long schoolId;

    //药店ID
    @ExcelProperty("药店ID")
    private Long shopId;

    @ExcelProperty("学校名")
    private String schoolName;

    @ExcelProperty("学校编号")
    private String schoolCode;

    @ExcelProperty("药店名")
    private String shopName;

    @ExcelProperty("药店编号")
    private String shopCode;

    //备注
    @ExcelProperty("备注")
    private String remark;


    public SchoolShopUp() {

    }

    public SchoolShopVo toVo() {
        SchoolShopEntity entity = new SchoolShopEntity();
        SchoolShopVo vo = new SchoolShopVo(entity);
        entity.setId(id);
        entity.setSchoolId(schoolId);
        entity.setShopId(shopId);
        entity.setRemark(remark);
        SchoolEntity schoolEntity = new SchoolEntity();
        schoolEntity.setCode(schoolCode);
        ShopEntity shopEntity = new ShopEntity();
        shopEntity.setCode(shopCode);
        return vo;
    }


}
